<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>监测地址</title>
    <link rel="stylesheet" type="text/css" href="../../js/layer/css/layui.css">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <style>
        .layui-textarea{
            opacity: 0.8;
        }
    </style>

</head>
<body style="padding-top: 15px;">
<form class="layui-form" action="" id="html-body">
</form>
<script type="text/javascript" src="../../js/layer/layui.js"></script>
<script>
    ready(function() {
        layui.use(['zhanshop'], function(){
            var $ = layui.$;
            var zhanshop = layui.zhanshop;
            var platform = zhanshop.getParam("platform");
            var app = zhanshop.getParam("app");
            zhanshop.view(API_ADDRESS + apiUrlTable+'/Adapp', '#view', function(data){
                var html = '';
                for(var title in data){
                    html += '<div class="layui-form-item">\n' +
                        '\n' +
                        '        <label class="layui-form-label">'+title+'</label>\n' +
                        '\n' +
                        '        <div class="layui-input-block">\n' +
                        '            <textarea placeholder="" class="layui-textarea" rows="8">'+data[title]+'</textarea>' +
                        '        </div>\n' +
                        '\n' +
                        '    </div>';
                }
                $("#html-body").html(html);
            }, "POST", {'_method': 'adlisten', "app": app, "platform": platform}, {}, false);
        });
    });
</script>
</body>
</html>